package com.pactera.madp.cp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: yangpengwei
 * @time: 2020/12/25 4:43 下午
 * @description 自动拉群管理 - 创建提交 DTO
 */
@NoArgsConstructor
@Data
@ApiModel(value = "自动拉群管理 - 创建提交")
public class ReqRoomAutoPullCreateDTO {

    @NotNull(message = "企业 id 不能为 null")
    @ApiModelProperty(value = "企业id")
    private Integer corpId;

    @NotBlank(message = "扫码名称不能为 null")
    @ApiModelProperty(value = "扫码名称")
    private String qrcodeName;

    @Range(min = 1, max = 2, message = "非法添加验证数值")
    @ApiModelProperty(value = "验证数值 1 2")
    private Integer isVerified;

    @NotBlank(message = "成员 id 不能为空")
    @ApiModelProperty(value = "成员 id")
    private String employees;

    @NotBlank(message = "客户标签不能为空")
    @ApiModelProperty(value = "客户标签")
    private String tags;

    @NotBlank(message = "入群引导语不能为空")
    @ApiModelProperty(value = "入群引导语")
    private String leadingWords;

    @NotBlank(message = "群聊 id 不能为空")
    @ApiModelProperty(value = "群聊 id")
    private List rooms;

}
